/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.aptech.fpt.c0810g.newspj.entity;

import com.aptech.fpt.c0810g.newspj.dataaccess.LoginAction;

/**
 *
 * @author zang
 */
public class Manager {

    private String userName;
    private String passWord;
    private boolean isLogged = false;

    public boolean isIsLogged() {
        return isLogged;
    }

    public void setIsLogged(boolean isLogged) {
        this.isLogged = isLogged;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Manager() {
    }

    public boolean login() {
        LoginAction login = new LoginAction();
        login.doLogin(this);
        if (this.isIsLogged()) {
            return true;
        } else {
            return false;
        }
    }
}
